#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: test.py
# @time: 2021/4/30 13:28
# @desc:
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
async def hello():
    return "Hello World!"

if __name__ == '__main__':
    import os
    import uvicorn

    module = os.path.basename(__file__).split(".")[0]
    print(module)
    uvicorn.run(f'{module}:app', host="0.0.0.0", port=8000, reload=True, debug=True)
